#include <iostream>
#include <vector>
#include <string>
#include "workermanager.h"
using namespace std;

int main()
{
    
    WorkerManager wm ;
    int choice;
    while (1) {
        wm.showSystem();
        cin >> choice ;
        switch (choice) {
            case 0 :
                wm.exitSystem();
                break;
            
            case 1 :
                wm.addWorker();
                break;

            case 2 :
                wm.showWorker();
                break;

            case 3 :
                wm.deleteWorker();
                break;
            
            case 4 :
                wm.alterWorker();
                break;
        
            case 5 :
                wm.sereachWorker();
                break;

            case 6 :
                wm.randWorker();
                break;

            case 7 :
                wm.removeWorkerList();
                break;

            default:
                system("cls");
                break;
            }   
    }

    
    cout << endl;
}